package com.party.core.model.mall;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;

import java.util.List;
import java.util.Map;

/**
 * @Description: 规格选择输出
 * @Author: yangshoukun
 * @Date: 2018/4/18 11:20
 */
public class MallGoodsSpecOutput {
    // 商品id
    private String id;
    // 商品名称
    private String name;
    // 商品价格
    private String price;
    // 商品图片
    private String pic;
    // 商品库存
    private Long stock;
    //商品类型  1 普通商品  2 积分商品  3 普通+积分
    private Integer type;
    // 产品列表
    private List<ProductOut> productList = Lists.newArrayList();
    // 规格列表
    private List<MallCategorySiftSpec> specList = Lists.newArrayList();
    // 产品输出列表
    private Map<String, Object> products = Maps.newHashMap();

    public static class ProductOut {
        // 产品id
        private String id;
        // 产品价格
        private Double price;
        // 产品库存
        private Long stock;
        //
        private String index;
        // 规格列表
        private List<Map<String, String>> specList = Lists.newArrayList();

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public Double getPrice() {
            return price;
        }

        public void setPrice(Double price) {
            this.price = price;
        }

        public Long getStock() {
            return stock;
        }

        public void setStock(Long stock) {
            this.stock = stock;
        }

        public List<Map<String, String>> getSpecList() {
            return specList;
        }

        public void setSpecList(List<Map<String, String>> specList) {
            this.specList = specList;
        }

        public String getIndex() {
            return index;
        }

        public void setIndex(String index) {
            this.index = index;
        }
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Long getStock() {
        return stock;
    }

    public void setStock(Long stock) {
        this.stock = stock;
    }

    public List<ProductOut> getProductList() {
        return productList;
    }

    public void setProductList(List<ProductOut> productList) {
        this.productList = productList;
    }

    public List<MallCategorySiftSpec> getSpecList() {
        return specList;
    }

    public void setSpecList(List<MallCategorySiftSpec> specList) {
        this.specList = specList;
    }

    public Map<String, Object> getProducts() {
        return products;
    }

    public void setProducts(Map<String, Object> products) {
        this.products = products;
    }
}
